.class public final Lnbisdk/qb;
.super Ljava/lang/Object;


# instance fields
.field private wU:I

.field private wV:Lnbisdk/oh;

.field private wW:Lnbisdk/jt;


# direct methods
.method private constructor <init>(Lnbisdk/oh;Lnbisdk/jt;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    iput-object p2, p0, Lnbisdk/qb;->wW:Lnbisdk/jt;

    invoke-virtual {p1}, Lnbisdk/oh;->size()I

    move-result v0

    iput v0, p0, Lnbisdk/qb;->wU:I

    return-void
.end method

.method public static a(Ljava/util/Vector;Lnbisdk/jt;)V
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x1

    new-instance v0, Lnbisdk/qb;

    new-instance v1, Lnbisdk/oh;

    invoke-direct {v1, p0}, Lnbisdk/oh;-><init>(Ljava/util/Vector;)V

    invoke-direct {v0, v1, p1}, Lnbisdk/qb;-><init>(Lnbisdk/oh;Lnbisdk/jt;)V

    iget v1, v0, Lnbisdk/qb;->wU:I

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v1, v2

    :goto_0
    if-ltz v1, :cond_0

    invoke-direct {v0, v1}, Lnbisdk/qb;->bm(I)V

    add-int/lit8 v1, v1, -0x1

    goto :goto_0

    :cond_0
    :goto_1
    iget v1, v0, Lnbisdk/qb;->wU:I

    if-le v1, v2, :cond_1

    iget v1, v0, Lnbisdk/qb;->wU:I

    sub-int/2addr v1, v2

    iput v1, v0, Lnbisdk/qb;->wU:I

    iget v1, v0, Lnbisdk/qb;->wU:I

    invoke-direct {v0, v3, v1}, Lnbisdk/qb;->h(II)V

    invoke-direct {v0, v3}, Lnbisdk/qb;->bm(I)V

    goto :goto_1

    :cond_1
    return-void
.end method

.method private bm(I)V
    .locals 7

    const/4 v5, 0x1

    mul-int/lit8 v0, p1, 0x2

    add-int/lit8 v0, v0, 0x1

    move v1, p1

    :goto_0
    iget v2, p0, Lnbisdk/qb;->wU:I

    if-ge v0, v2, :cond_1

    add-int/lit8 v2, v0, 0x1

    iget v3, p0, Lnbisdk/qb;->wU:I

    if-ge v2, v3, :cond_0

    iget-object v2, p0, Lnbisdk/qb;->wW:Lnbisdk/jt;

    iget-object v3, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    add-int/lit8 v4, v0, 0x1

    invoke-virtual {v3, v4}, Lnbisdk/oh;->X(I)Ljava/lang/Object;

    move-result-object v3

    iget-object v4, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    invoke-virtual {v4, v0}, Lnbisdk/oh;->X(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Lnbisdk/jt;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v2

    if-ne v2, v5, :cond_0

    add-int/lit8 v0, v0, 0x1

    :cond_0
    iget-object v2, p0, Lnbisdk/qb;->wW:Lnbisdk/jt;

    iget-object v3, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    invoke-virtual {v3, v1}, Lnbisdk/oh;->X(I)Ljava/lang/Object;

    move-result-object v3

    iget-object v4, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    invoke-virtual {v4, v0}, Lnbisdk/oh;->X(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Lnbisdk/jt;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v2

    if-eqz v2, :cond_1

    if-ne v2, v5, :cond_2

    :cond_1
    return-void

    :cond_2
    invoke-direct {p0, v1, v0}, Lnbisdk/qb;->h(II)V

    mul-int/lit8 v1, v0, 0x2

    add-int/lit8 v1, v1, 0x1

    move v6, v1

    move v1, v0

    move v0, v6

    goto :goto_0
.end method

.method private h(II)V
    .locals 3

    iget-object v0, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    invoke-virtual {v0, p1}, Lnbisdk/oh;->X(I)Ljava/lang/Object;

    move-result-object v0

    iget-object v1, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    iget-object v2, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    invoke-virtual {v2, p2}, Lnbisdk/oh;->X(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v1, v2, p1}, Lnbisdk/oh;->a(Ljava/lang/Object;I)V

    iget-object v1, p0, Lnbisdk/qb;->wV:Lnbisdk/oh;

    invoke-virtual {v1, v0, p2}, Lnbisdk/oh;->a(Ljava/lang/Object;I)V

    return-void
.end method
